<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>游戏日志</a></li>
		</ul>
		
		<form class="well form-inline margin-top-20" method="post" action="{:url('liveusergamelog/index')}">
			时间：
			<input class="form-control js-bootstrap-date" autocomplete="off" name="start_time" id="start_time" value="{:input('request.start_time')}" aria-invalid="false" style="width: 110px;"> - 
            <input class="form-control js-bootstrap-date" autocomplete="off" name="end_time" id="end_time" value="{:input('request.end_time')}" aria-invalid="false" style="width: 110px;">
			玩家： 
            <input class="form-control" type="text" name="user_id" style="width: 200px;" value="{:input('request.user_id')}"
                placeholder="请输入玩家ID">
			主播： 
            <input class="form-control" type="text" name="live_id" style="width: 200px;" value="{:input('request.live_id')}"
                placeholder="请输入主播ID">
			<input type="submit" class="btn btn-primary" value="搜索">
		</form>		
		<form method="post" class="js-ajax-form" >
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th>ID</th>
						<th>玩家ID</th>
						<th>玩家昵称</th>
						<th>主播（ID）</th>
						<th>游戏类型</th>
						<th>下注量</th>
						<th>总输赢</th>
						<th>手续费</th>
						<th>玩家余额</th>
						<th>下注数据</th>
						<th>中奖位置</th>
						<th>时间</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.user_id}</td>
						<td>{$vo.user_name}</td>
						<td>{$vo['userinfo']['user_nickname']} ({$vo['live_id']}) </td>
						<td>{$game_type[$vo['game_type']]}</td>
                        <td>{$vo.amount}</td>
                        <td>{$vo.winner}</td>
                        <td>{$vo.fee}</td>
                        <td>{$vo.balance}</td>
                        <td>{$vo.bets}</td>
                        <td>{$vo.results+1}</td>
                        <td>{$vo.created_at}</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>

		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>